package com.yh.patterns.singleton.singleton_Multiton;

/**
 * @Auther:云尚学Java
 */
public class Client {
    public static void main(String[] args) {
        Multiton m1 = Multiton.getInstance();
        Multiton m2 = Multiton.getInstance();
        Multiton m3 = Multiton.getInstance();
        Multiton m4 = Multiton.getInstance();
        System.out.println("m1==m2:"+(m1==m2));
        System.out.println("m2==m3:"+(m2==m4));
        System.out.println("m3==m4:"+(m3==m4));

    }
}
